package org.giovanolli.mumi.view.converter;

import javax.faces.convert.FacesConverter;

import org.giovanolli.mumi.entities.SpecialistFee;

@FacesConverter(value = "specialistFeeConverter")
public class SpecialistFeeConverter extends SelectItemsBaseConverter<SpecialistFee> {
	@Override
	public String getAsString(Object value) {
		return ((SpecialistFee) value).getId().toString();
	}

	@Override
	public String getItemLabel(SpecialistFee object) {
		return object != null ? object.getObservation() : null;
	}

	@Override
	public Object getItemValue(SpecialistFee object) {
		return object;
	}

}